﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace GestionStock
{
    public partial class StockBureau : UserControl
    {
        public StockBureau()
        {
            InitializeComponent();
        }

  
        private void StockBureau_Load(object sender, EventArgs e)
        {
            this.sTOCKTableAdapter.Fill(this.gestionstockDataSet.STOCK);
        }

        private void sTOCKBindingNavigatorSaveItem_Click_1(object sender, EventArgs e)
        {
            this.Validate();
            this.sTOCKBindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.gestionstockDataSet);

        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            int index = sTOCKDataGridView.CurrentRow.Index;
            ConfigApps.designation = sTOCKDataGridView.Rows[index].Cells[0].Value+"";
            Fourniture f = new Fourniture();
            f.WindowState = FormWindowState.Maximized;
            f.ShowDialog(this);
        }


       
    }
}
